package com.anjubao.parking.municipal.roadside.form;

import lombok.Data;

import java.util.List;

/**
 * 心跳
 * @author zhuchunfeng
 * @date 2019/6/13 15:16
 */
@Data
public class HeartbeatForm {
    /*
     * 4.1.1 上报命令格式
     * {
     * "cmd":"heartbeat"，
     * "devid":"123456789001",
     * "devtype":"xxx",
     * "id":["123456789012","123456789013"...],
     * "second":"second",
     * "sn":"xxx",
     * "second":second,
     * "lockstatus":0,
     * "ledstatus":1,
     * "radarstatus":1,
     * "gpsstatus":1,
     * "gpsvalues":[dddmm.mmmm,dddmm.mmmm],
     * "gyrostatus":1,
     * "gyrovalues":[40,50,60],
     * "temp":温度值，
     * "level":bool, //水位报警开关，TURE 表示淹没了水位报警点
     * "light":光照强度 4 档，很暗、暗、亮、很亮
     * "fan":散热风扇状态，TRUE 表示开
     * }
     */
    private String cmd;
    private String devid;
    private String devtype;
    private String sn;
    private String second;
    private int lockstatus;
    private int ledstatus;
    private int radarstatus;
    private int gpsstatus;
    private int gyrostatus;
    private double temp;
    private boolean level;
    private int light;
    private boolean fan;
    private String id;
    private List<Double> gpsvalues;
    private List<Integer> gyrovalues;
}
